package com.bdqn.service.Impl;

import com.bdqn.entity.Custom;
import com.bdqn.entity.Parameters;
import com.bdqn.mapper.CustomManageMapper;
import com.bdqn.service.CustomManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CustomManageServiceImpl implements CustomManageService {
    @Autowired
    CustomManageMapper mapper;
    @Override
    public List<Custom> getCustomInfo(Parameters parameters) {
        return mapper.getCustomInfo(parameters);
    }

    @Override
    public int getCount(Parameters parameters) {
        return mapper.getCount(parameters);
    }

    @Override
    public int addCustom(Custom custom) {
        return mapper.addCustom(custom);
    }

    @Override
    public int updateCustom(Custom custom) {
        return mapper.updateCustom(custom);
    }

    @Override
    public int delCustom(int id) {
        return mapper.delCustom(id);
    }

    @Override
    public List<Custom> getCustom() {
        return mapper.getCustom();
    }
}
